// Filename : test-dic.cpp
// Just a test

#include <iostream>
#include <string>
#include "dictionary.h"
#include "cgihandler.h"
#include <stdlib.h>

using namespace std;

int main( int argc, char * argv[] ) {
	setenv("QUERY_STRING", "employ=%D5%D4%C5%F4%CE%B0&age=26&sex=male&major=engineering&major=liberal&introduce=%B0%A1new%C2%FD", 1);
	setenv("REQUEST_METHOD", "GET", 1);
	setenv("CONTENT_LENGTH", "13", 1);
	CgiHandler cgi;
	cgi.handlerInit();
	string str = cgi.getEnvValue("REQUEST_METHOD");
	string str2 = cgi.getQueryValue("major");
	cout << str << endl;
	cout << str2 << endl;
}

// End of test-dic.cpp
